package cn.lili.timetask.handler.impl.order;

import cn.lili.modules.order.order.client.OrderClient;
import cn.lili.timetask.handler.EveryDayExecute;
import cn.lili.timetask.handler.EveryHourExecute;
import lombok.RequiredArgsConstructor;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * @author paulG
 * @since 2021/3/11
 **/
@Slf4j
@Component
@RequiredArgsConstructor
public class OrderEveryHourTaskExecute implements EveryDayExecute {

    private final OrderClient orderClient;
    @Override
    public void execute() {
        orderClient.everyDayTask();
    }
}
